layui.use('carousel', function () {
    let $ = layui.jquery;

    $(window.parent.document).find("#contentFrame").load(function () {
        var main = $(window.parent.document).find(" #contentFrame");
        var thisheight = $(document).height() + 30;
        main.height(thisheight);
    });
})